package star.oath.project.character.model;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import star.oath.project.item.model.EquipDef;
import star.oath.project.item.model.MiscDef;

import java.io.Serializable;

@Data
@TableName("character_item")
public class CharacterItem extends Model<CharacterItem> implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId
    private Integer itemId;
    private String characterId;
    private String itemCode;
    private Integer isMisc;
    private Integer itemNum;

    @TableField(exist = false)
    private EquipDef equipInfo;
    @TableField(exist = false)
    private MiscDef miscInfo;

}
